package com.jeesite.modules.member.entity;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

import java.util.Date;

/**
 * @author Mr Wu
 * @date 2025/10/28
 */
@Table(name="h_member", alias="a", label="会员信息", columns={
        @Column(name="member_id", attrName="memberId", label="用户编码", isPK=true),
        @Column(name="member_nick", attrName="memberNick", label="昵称", queryType= QueryType.LIKE),
        @Column(name="member_avatar", attrName="memberAvatar", label="头像"),
        @Column(name="member_state", attrName="memberState", label="状态"),
        @Column(name="create_date", attrName="createDate", label="创建时间"),
        @Column(name="last_date", attrName="lastDate", label="最后上线时间"),
        @Column(name="open_id", attrName="openId", label="微信openid"),
}, orderBy="a.member_id DESC"
)
public class MemberApi extends DataEntity<MemberApi> {
    private String memberId;
    private String memberNick;
    private String memberAvatar;
    private String memberState;
    private Date lastDate;
    private String openId;

    public MemberApi() {
        this(null);
    }

    public MemberApi(String id){
        super(id);
    }

    public String getMemberId() {
        return memberId;
    }

    public void setMemberId(String memberId) {
        this.memberId = memberId;
    }

    public String getMemberNick() {
        return memberNick;
    }

    public void setMemberNick(String memberNick) {
        this.memberNick = memberNick;
    }

    public String getMemberAvatar() {
        return memberAvatar;
    }

    public void setMemberAvatar(String memberAvatar) {
        this.memberAvatar = memberAvatar;
    }

    public String getMemberState() {
        return memberState;
    }

    public void setMemberState(String memberState) {
        this.memberState = memberState;
    }

    public Date getLastDate() {
        return lastDate;
    }

    public void setLastDate(Date lastDate) {
        this.lastDate = lastDate;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }
}
